Copy-Item -Path "$PSScriptRoot\src\pluginInfo.yml" -Destination "$PSScriptRoot\dist\pluginInfo.yml" -Recurse

$sourceFolderPath = "$PSScriptRoot\dist"
$destinationPackagePath = "$PSScriptRoot\dist\localTaskHandler.zip"

if (Test-Path -Path $destinationPackagePath) {
    Remove-Item -Path $destinationPackagePath -Force
}

Get-ChildItem -Path $sourceFolderPath | Compress-Archive -CompressionLevel Fastest -DestinationPath $destinationPackagePath